<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title></title>
    <link rel="stylesheet" href="${css}/pintuer.css">
    <link rel="stylesheet" href="${css}/admin.css">
    <link rel="stylesheet" href="${css}/bootstrap.css">
    <script src="${js}/jquery.js"></script>
    <script src="${js}/pintuer.js"></script>
    <script src="${js}/bootstrap.js"></script>
</head>
<body>
<form method="post" action="${root}/user/userShow" id="listform">
    <div class="panel admin-panel">
        <div class="panel-head"><strong class="icon-reorder"> 内容列表</strong></div>
        <div class="padding border-bottom">
            <ul class="search" style="padding-left:10px;">
                <li>搜索：</li>
                <li>地区：
                    <input type="text" placeholder="请输入客户所在地关键字" name="adName" value="${userVo.adName}" class="input" style="width:130px; line-height:17px;display:inline-block" />
                </li>
                <li>账号：
                    <input type="text" placeholder="请输入客户账号关键字" name="userName" value="${userVo.userName}" class="input" style="width:130px; line-height:17px;display:inline-block" />
                </li>
                <li>
                    姓名：
                    <input type="text" placeholder="请输入姓名的关键字" name="realName" value="${userVo.realName}" class="input" style="width:130px; line-height:17px;display:inline-block" />
                    <input class="button border-main icon-search" type="submit" value="搜索">
                    <a href="" class="button border-main icon-bar" type="submit">清除</a>
                </li>
            </ul>
        </div>
        <table class="table table-hover text-center">
            <tr>
                <th>序号</th>
                <th>客户账号</th>
                <th>电话</th>
                <th>真实姓名</th>
                <th>地址</th>
                <th width="280">操作</th>
            </tr>
            <c:forEach items="${users}" var="data" varStatus="i">
                <tr>
                    <td>${i.count}</td>
                    <td>${data.username}</td>
                    <td>${data.phone}</td>
                    <td>${data.realname}</td>
                    <td>${data.address}</td>
                    <td>
                        <div class="button-group">
                            <button type="button" class="button border-blue opt-info">
                                <a href="${root}/feedback/findFeedBackByUid?uid=${data.uid}"><span class="icon-search"></span>用户商品反馈</a>
                            </button>
                        </div>
                    </td>
                </tr>
            </c:forEach>
            <tr>
                <td colspan="6">
                    <div class="pagelist">
                        当前<span class="text-big">${pageInfo.getPageNum()}/${pageInfo.getPages()}</span>页
                        <a href="${root}/user/userShow?currentPage=1&adName=${userVo.adName}&realName=${userVo.realName}&userName=${userVo.userName}">首页</a>
                        <a href="${root}/user/userShow?currentPage=${pageInfo.getPageNum() - 1}&adName=${userVo.adName}&realName=${userVo.realName}&userName=${userVo.userName}">上一页</a>
                        <c:forEach begin="${startPage}" end="${endPage}" var="step" step="1">
                            <c:if test="${pageInfo.getPageNum()==step}">
                                <strong class="text-red">${step}</strong>
                            </c:if>
                            <c:if test="${pageInfo.getPageNum()!=step}">
                                <a href="${root}/user/userShow?currentPage=${step}&adName=${userVo.adName}&realName=${userVo.realName}&userName=${userVo.userName}">${step}</a>
                            </c:if>
                        </c:forEach>
                        <a href="${root}/user/userShow?currentPage=${pageInfo.getPageNum() + 1}&adName=${userVo.adName}&realName=${userVo.realName}&userName=${userVo.userName}">下一页</a>
                        <a href="${root}/user/userShow?currentPage=${pageInfo.getPages()}&adName=${userVo.adName}&realName=${userVo.realName}&userName=${userVo.userName}">尾页</a>
                    </div>
                </td>
            </tr>
        </table>
    </div>
</form>
</body>
</html>
